﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace DataMID
{
    [StructLayout(LayoutKind.Sequential,CharSet=CharSet.Ansi,Pack =8)]
    public struct TestArray
    {
        [MarshalAs(UnmanagedType.LPStr,SizeConst =512)]
        public string str;

        [MarshalAs(UnmanagedType.ByValArray,SizeConst =8,ArraySubType =UnmanagedType.U4)]
        public int[] intArr;

        [MarshalAs(UnmanagedType.LPStr,SizeConst =64)]
        public string charArr;
    }
}
